package com.bocloud.controller;

import com.bocloud.model.Result;
import com.bocloud.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="/company")
public class CompanyController {


	@Autowired
	CompanyService companyService;

	/**
	 * 用途：获取公司表中的所有数据
	 * @param
	 * @return Result
	 */
	@RequestMapping(value = "getallcom")
	@ResponseBody
	public  Result selAllCompany(){
		return new Result(true,companyService.getAllCompany(),"获取所有数据");
	}


}

